package com.springboot.gateway.service.failback;

import com.springboot.gateway.service.ProviderClient;
import org.springframework.stereotype.Component;

/**
 * 熔断器的返回数据类
 * @author 林敏
 */
@Component
public class ProviderFailBack implements ProviderClient {
    @Override
    public String hello(String name) {
        return "hello is strong";
    }

    @Override
    public String abc() {
        return "abc is error";
    }
}
